package com.coolw.core.function;

import java.util.function.Predicate;

/**
 * Predicate函数：接收一个参数T，返回boolean。调用test方法执行
 *
 * @author coolw
 * @date 2025/3/21 9:10
 */
public class PredicateTest {

    public static void main(String[] args) {
        Predicate<Integer> predicate = s -> s % 2 == 0;
        boolean result = predicate.test(4);
        System.out.println(result);
    }
}
